package com.cmc.cloud.cmclink.doc.api.document.req.so;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * 文件上传返回参数
 *
 * @author llp
 */
@Data
@EqualsAndHashCode()
public class FileUploadRespDto {
    @Schema(
            description = "文件id",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private Long id;
    @Schema(
            description = "文件格式",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String fileFormat;
    @Schema(
            description = "文件名称",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String fileName;
    @Schema(
            description = "文件大小（单位B）",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private BigDecimal fileSize;
    @Schema(
            description = "下载预览地址",
            requiredMode = Schema.RequiredMode.REQUIRED
    )
    private String downloadUrl;
}
